package com.akkainaction.helloactor.actor;

import akka.actor.UntypedActor;
import akka.event.Logging;
import akka.event.LoggingAdapter;

public class ActorDemo extends UntypedActor {

    private LoggingAdapter log = Logging.getLogger(this.getContext().system(), this);

    @Override
    public void onReceive(Object msg) {
        if (msg instanceof String) {
            log.info(msg.toString());
        } else {
            unhandled(msg);
        }
    }
}